package com.poh.service.impl;

import com.poh.mapper.AnswerQuestionMapper;
import com.poh.pojo.AnswerQuestion;
import com.poh.service.AnswerQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnswerQuestionServiceImpl implements AnswerQuestionService {
    @Autowired
    AnswerQuestionMapper answerQuestionMapper;

    @Override
    public int addAnswerQuestion(AnswerQuestion answerQuestion) {
        return answerQuestionMapper.addAnswerQuestion(answerQuestion);
    }

    @Override
    public List<AnswerQuestion> queryAnswerQuestionByQuestionBankId(String questionBankId) {
        return answerQuestionMapper.queryAnswerQuestionByQuestionBankId(questionBankId);
    }

    @Override
    public int deleteAnswerQuestionById(int answerQuestionId) {
        return answerQuestionMapper.deleteAnswerQuestionById(answerQuestionId);
    }

    @Override
    public int updateAnswerQuestion(AnswerQuestion answerQuestion) {
        return answerQuestionMapper.updateAnswerQuestion(answerQuestion);
    }
}
